package com.sc.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用于罗列分页查询属性
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("分页查询结果参数")
public class PageBean<T> {

    @ApiModelProperty("当前页码")
    private int page;

    @ApiModelProperty("每页最大条目数")
    private int pageSize;

    @ApiModelProperty("总条目数")
    private int total;

    @ApiModelProperty("总页数")
    private int pageCount;

    @ApiModelProperty("当前页面列表")
    private T pageData;

}
